﻿@using AwesomeSlider.Models;
@using Orchard.ContentManagement;
@using Orchard.Utility.Extensions;
@using AwesomeSlider.Extensions;
@using Orchard.Core.Routable.Models;

@{
    Style.Require("SliderAdmin");
    ContentItem contentItem = Model.ContentItem;
    SliderPart sliderPart = contentItem.As<SliderPart>();
    string sliderIconUrl = Href("../Content/img/sliderImage.png");
}  

<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
    <div class="thumb-column">
        <img src="@sliderIconUrl" alt="" />
    </div>
    <div class="properties">
        <h3>@Html.Link(string.Format("{0}", contentItem.As<RoutePart>().Title), Url.SliderItem(sliderPart))</h3>
    </div>
    <div class="related">
        <a href="@Url.SliderRemove(sliderPart, false)" title="@T("remove")" class="remove-album">@T("Remove")</a>
        <div class="remove-album-panel" style="display:none;">
            <a href="@Url.SliderRemove(sliderPart, false)" itemprop="removeurl unsafeurl" title="@T("Remove slider")">@T("Remove slider")</a> 
            <a href="@Url.SliderRemove(sliderPart, true)" itemprop="removeurl unsafeurl" title="@T("Remove slider and media folder")">@T("Remove slider and media folder")</a>    
        </div>
    </div>
</div>
